public class Test {
    public static void main(String[] args) {
        int m= 5;
        System.out.println((m>>1)&1);
        System.out.println(~5);
        System.out.println(Integer.parseInt("101", 2));
        System.out.println(Integer.parseInt("010", 2));
    }
}
